Skip to content

Default forecast_chart width to container for responsive sizing#189

Merged
koaning merged 1 commit intomainfrom
koaning/forecast-chart-width
Mar 27, 2026
Merged

Default forecast_chart width to container for responsive sizing#189
koaning merged 1 commit intomainfrom
koaning/forecast-chart-width

Conversation

@koaning
Copy link
Copy Markdown
Owner

@koaning koaning commented Mar 27, 2026

Summary

  • forecast_chart() now defaults to width="container" instead of omitting width, so charts fill their container in marimo.
  • Accepts int | str | None for the width parameter to support both pixel values and Altair string options.
  • Removes hardcoded width=600 from the demo notebook.

Test plan

  • Smoke-tested default returns "container", explicit pixel width still works
  • marimo check and uv run demos/forecast_chart.py pass

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@koaning koaning merged commit afcd08c into main Mar 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant